#!/bin/bash

cd `dirname $0`

if [ -z "`ps aux | grep -i sshinner | grep -v "grep" | grep -v "vi" | grep -v "sshinner.sh"`" ]
then
    ./sshinner.exp
    echo -e "\033[32m start sshinner ok .... \033[0m"
    date
fi

if [ -z "`ps aux | grep -i sshinner | grep -v "grep" | grep -v "vi" | grep -v "sshinner.sh"`" ]
then
    echo -e "\033[31m start sshinner faild .... \033[0m"
fi
